package com.idanchuang.component.sequence.id.service;

import com.idanchuang.component.base.JsonResult;
import com.idanchuang.sequence.service.api.client.ISequenceFeignClient;
import com.idanchuang.sequence.service.api.dto.BatchIdDTO;

/**
 * @author yjy
 * Created at 2021/8/3 11:03 上午
 */
public class MockISequenceFeignClientImpl implements ISequenceFeignClient {

    @Override
    public JsonResult<Long> nextId(String s, String s1) {
        return JsonResult.success(999999L);
    }

    @Override
    public JsonResult<BatchIdDTO> nextBatchId(String s, String s1, int i) {
        BatchIdDTO dto = new BatchIdDTO();
        dto.setLastId(9999999L);
        dto.setCount(10000);
        return JsonResult.success(dto);
    }

    @Override
    public JsonResult<String> resetId(String s, String s1, long l) {
        return JsonResult.success();
    }
}
